package org.jingouzhui.test.infrastructure;

import lombok.extern.slf4j.Slf4j;
import org.jingouzhui.domain.strategy.model.valboj.RuleTreeVO;
import org.jingouzhui.domain.strategy.repository.IStrategyRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;


/**
 * @description: 仓储层测试
 * @author: jingouzhui
 * @date: 2025/5/3 15:22
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class StrategyRepositoryTest {

    @Resource
    private IStrategyRepository strategyRepository;


    @Test
    public void test_query_rule_tree(){
        RuleTreeVO ruleTreeVO = strategyRepository.queryRuleTreeVOByTreeId("tree_lock_1");
        log.info("测试结果,ruleTreeVO:{}", ruleTreeVO);
    }
}
